package com.ruibang.glass.quality.mapper;


import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.ruibang.glass.quality.domain.req.BatchDetailReq;
import com.ruibang.glass.quality.domain.req.HistoryBatchReq;
import com.ruibang.glass.quality.domain.resp.BatchDetailResp;
import com.ruibang.glass.quality.domain.resp.HistoryBatchResp;
import com.ruibang.glass.quality.domain.resp.ItemLotBindNumResp;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

@Mapper
public interface HistoryBatchMapper {
    IPage<HistoryBatchResp> pageQuery(Page<HistoryBatchResp> page,@Param("historyBatchReq") HistoryBatchReq historyBatchReq);

    IPage<BatchDetailResp> getBatchDetail(Page<BatchDetailResp> page, @Param("batchDetailReq") BatchDetailReq batchDetailReq);

    List<ItemLotBindNumResp> getIsBindNumByBatchNumber(@Param("batchNumbers") List<String> batchNumbers);

}
